Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: FFmpeg/FFV1
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 924e9d34faf3
Choose a base ref
...
head repository: FFmpeg/FFV1
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dc84a7065f23
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Aug 3, 2013

  1. Copy the full SHA
    7210c5c View commit details
  2. ffv1: update year

    michaelni committed Aug 3, 2013
    Copy the full SHA
    dc84a70 View commit details
Showing with 110 additions and 2 deletions.
  1. +110 −2 ffv1.lyx
112 changes: 110 additions & 2 deletions ffv1.lyx
Original file line number Diff line number Diff line change
@@ -1556,7 +1556,115 @@ Run length coding
\end_layout

\begin_layout Standard
TODO
The run value is encoded in 2 parts, the prefix part stores the more significant
part of the run as well as adjusting the run_index which determines the
number of bits in the less significant part of the run.
The 2nd part of the value stores the less significant part of the run as
it is.
The run_index is reset for each plane and slice to 0.
\end_layout

\begin_layout LyX-Code
log2_run[41]={
\begin_inset CommandInset citation
LatexCommand cite
key "JPEGLS"

\end_inset

.
\end_layout

\begin_layout LyX-Code
0, 0, 0, 0, 1, 1, 1, 1,
\end_layout

\begin_layout LyX-Code
2, 2, 2, 2, 3, 3, 3, 3,
\end_layout

\begin_layout LyX-Code
4, 4, 5, 5, 6, 6, 7, 7,
\end_layout

\begin_layout LyX-Code
8, 9,10,11,12,13,14,15,
\end_layout

\begin_layout LyX-Code
16,17,18,19,20,21,22,23,
\end_layout

\begin_layout LyX-Code
24,
\end_layout

\begin_layout LyX-Code
};
\end_layout

\begin_layout LyX-Code

\end_layout

\begin_layout LyX-Code
if (run_count == 0 && run_mode == 1) {
\end_layout

\begin_layout LyX-Code
if (get_bits1()) {
\end_layout

\begin_layout LyX-Code
run_count = 1 << log2_run[run_index];
\end_layout

\begin_layout LyX-Code
if (x + run_count <= w)
\end_layout

\begin_layout LyX-Code
run_index++;
\end_layout

\begin_layout LyX-Code
} else {
\end_layout

\begin_layout LyX-Code
if (log2_run[run_index])
\end_layout

\begin_layout LyX-Code
run_count = get_bits(log2_run[run_index]);
\end_layout

\begin_layout LyX-Code
else
\end_layout

\begin_layout LyX-Code
run_count = 0;
\end_layout

\begin_layout LyX-Code
if (run_index)
\end_layout

\begin_layout LyX-Code
run_index--;
\end_layout

\begin_layout LyX-Code
run_mode = 2;
\end_layout

\begin_layout LyX-Code
}
\end_layout

\begin_layout LyX-Code
}
\end_layout

\begin_layout Paragraph
@@ -6055,7 +6163,7 @@ Copyright
\end_layout

\begin_layout Standard
Copyright 2003-2012 Michael Niedermayer <michaelni@gmx.at>
Copyright 2003-2013 Michael Niedermayer <michaelni@gmx.at>
\begin_inset Newline newline
\end_inset